package com.cqut.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqut.dao.EvaluationResultManageMapper;

import com.cqut.service.IEvaluationResultManageService;
import com.cqut.util.SqlUtil;

@Service
public class EvaluationResultManageService implements IEvaluationResultManageService{

	@Resource(name="evaluationResultManageMapper")
	private EvaluationResultManageMapper evaluationResultManageMapper;
	
	
	@Override
	public List<Map<String, Object>> getEvaluationResultManageList() {
		
		return evaluationResultManageMapper.getEvaluationResultManageList();
	}
	
	@Override
    public long count() {
        return this.count(null, false);
    }

    @Override
    public long count(String condition, Object[] values) {
        return this.count(null, condition, values, false);
    }

    @Override
    public long count(String[] parameters, boolean isDistinct) {
        return this.count(parameters, null, null, isDistinct);
    }

    @Override
    public long count(String[] parameters, String condition, Object[] values, boolean isDistinct) {
        return evaluationResultManageMapper.count(SqlUtil.formatParameters(parameters), SqlUtil.fillCondition(condition, values), isDistinct);
    }

    /**阶段名称**/
	@Override
	public List<Map<String, Object>> getStateName() {
		// TODO Auto-generated method stub
		return evaluationResultManageMapper.findStateName();
	}

	/**赛制流程**/
	@Override
	public List<Map<String, Object>> getFormatProcess() {
		// TODO Auto-generated method stub
		return evaluationResultManageMapper.findFormatProcess();
	}
	
	/**评审阶段**/
	@Override
	public List<Map<String, Object>> getReviewState() {
		// TODO Auto-generated method stub
		return evaluationResultManageMapper.findReviewState();
	}

	@Override
	public List<Map<String, Object>> getScoreList() {
		// TODO Auto-generated method stub
		return evaluationResultManageMapper.getScoreList();
	}

	@Override
	public Map<String, Object> getDetail(String signUpId) {
		// TODO Auto-generated method stub
		return evaluationResultManageMapper.getDetail(signUpId);
	}

    
}
